/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unirio.pf.service;

import br.unirio.pf.dao.RegistrarPropostaDeCompraDAO;
import javax.jws.WebService;
import javax.jws.WebMethod;

/**
 *
 * @author Ricardo
 */
@WebService(serviceName = "RegistrarPropostaDeCompra")
public class RegistrarPropostaDeCompra {

    /** This is a sample web service operation */
    @WebMethod
    public boolean registrarProposta(String nome, String cpf, String cnpj, int idOrigem, double valor, String descricao) throws Exception {
        RegistrarPropostaDeCompraDAO dao = new RegistrarPropostaDeCompraDAO();
        boolean registrarProposta = dao.registrarProposta(nome, cpf, cnpj, idOrigem, valor, descricao);
        
        return registrarProposta;
    }
}
